package com.runningcode.tcs;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

public class LoadImages {
	public static BufferedImage s01;
	public static BufferedImage s02;
	public static BufferedImage s03;
	public static BufferedImage s04;
	
	public static BufferedImage s06;
	public static BufferedImage s07;
	public static BufferedImage s08;
	public static BufferedImage s09;
	
	public static BufferedImage t02;
	public static BufferedImage t04;
	public static BufferedImage t05;
	public static BufferedImage t06;
	public static BufferedImage t08;
	
	public static BufferedImage w02;
	public static BufferedImage w04;
	public static BufferedImage w06;
	public static BufferedImage w08;
	
	public static BufferedImage map_Image;
	public static BufferedImage food;
	public static BufferedImage wall;
	
	public static BufferedImage image_null;
	
	public static void initImages() {
		try {
			s01 = ImageIO.read(new File("./resource/snakes/s_01.png"));
			s02 = ImageIO.read(new File("./resource/snakes/s_02.png"));
			s03 = ImageIO.read(new File("./resource/snakes/s_03.png"));
			s04 = ImageIO.read(new File("./resource/snakes/s_04.png"));
			s06 = ImageIO.read(new File("./resource/snakes/s_06.png"));
			s07 = ImageIO.read(new File("./resource/snakes/s_07.png"));
			s08 = ImageIO.read(new File("./resource/snakes/s_08.png"));
			s09 = ImageIO.read(new File("./resource/snakes/s_09.png"));
			
			t02 = ImageIO.read(new File("./resource/snakes/t_02.png"));
			t04 = ImageIO.read(new File("./resource/snakes/t_04.png"));
			t05 = ImageIO.read(new File("./resource/snakes/t_05.png"));
			t06 = ImageIO.read(new File("./resource/snakes/t_06.png"));
			t08 = ImageIO.read(new File("./resource/snakes/t_08.png"));
			
			w02 = ImageIO.read(new File("./resource/snakes/w_02.png"));
			w04 = ImageIO.read(new File("./resource/snakes/w_04.png"));
			w06 = ImageIO.read(new File("./resource/snakes/w_06.png"));
			w08 = ImageIO.read(new File("./resource/snakes/w_08.png"));
			
			map_Image = ImageIO.read(new File("./resource/imgs/map.png"));
			food = ImageIO.read(new File("./resource/imgs/food.png"));
			wall = ImageIO.read(new File("./resource/imgs/wall.png"));
			
			image_null = ImageIO.read(new File("./resource/snakes/image_null.png"));
		} catch (IOException e) {
			e.printStackTrace();
		} 
	}
}
